#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
//掌握remove_if原理和用法
void test(){
    vector<int> vec={1,2,3,4,5,6};
    auto new_end=remove_if(vec.begin(),vec.end(),[](int x){return x%2==0;});
    vec.erase(new_end,vec.end());
}
int main(int argc, char * argv[]){
    test();    
    return 0;
}

